package com.base.monitor.admin.controller.biz.cfg;

import com.base.monitor.framework.annotation.ResponseResult;
import com.base.monitor.model.model.biz.cfg.dto.ParamSaveDto;
import com.base.monitor.module.biz.service.cfg.ParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/cfg/param")
@ResponseResult
public class ParamController {

    @Autowired
    private ParamService paramService;

    /**
     * 修改参数
     * @param paramSaveDto 需要修改的参数信息
     */
    @PostMapping
    public void editParam(@RequestBody ParamSaveDto paramSaveDto) {
        paramService.editParam(paramSaveDto);
    }
}
